package org.vaadin.example.nf4v.demo.ui.admin;

import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
import org.vaadin.nf4v.core.NavigableWindow;
import org.vaadin.nf4v.core.navigation.Navigator;
import org.vaadin.nf4v.ext.config.menu.Menu;

/**
 * todo: javadock
 */
@Menu(name = "Admin", weight = 1)
public class AdminWindow extends Window implements NavigableWindow {

    private Navigator navigator;

    public AdminWindow() {
        VerticalLayout layout = new VerticalLayout();
        layout.setSizeFull();
        navigator = new Navigator();
        layout.addComponent(navigator);

        setContent(layout);
    }

    public Navigator getNavigator() {
        return navigator;
    }
}
